﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VSFirstProject
{
    
    /*[public] enum WeekType
{
    One = 0,
    Two,
    Three,
     
    Count,
}
     * 
     * */

    public enum E_WeekType : short
    {
        One = 2,
        Two = 4,
        Three,
        Count,
    }

    public enum color : short
    {
        Red = 254,
        Orange,
        Black,
        White,
    }

    public enum E_Xingbei 
    {
        Man,
        Women,
        RenYao,
    }


    public class People
    {
        public string Name;
        public int Age;
        public float Height;
        public float Tizhong;
        public E_Xingbei Type;
    }


    class Program
    {
        public static void Test(People p)
        {
            int i = 3;
            p.Name = "--------";
        }
        public static void Main(string[] args)
        {
            Console.WriteLine("Please Enter a String:");

            string sss = Console.ReadLine();

            string sss2 = "\"" + sss.Replace(" ", "\" \"") + "\"";
            Console.WriteLine(sss2);

            string[] myS = sss.Split(' ');
            for (int i3 = 0; i3 < myS.Length; i3++)
                Console.Write("\"{0}\" ", myS[i3]);

            Console.ReadKey();

            string sss1 = sss.Replace("no", "yes");

            Console.WriteLine(sss1);

            char[] myC = sss.ToCharArray();
            for (int i1 = myC.Length - 1; i1 > -1; i1-- )
            {
                Console.Write(myC[i1]);
            }

            Console.WriteLine();

            for (int i2 = sss.Length-1; i2 > -1; i2--)
                Console.Write(sss[i2]);

                Console.ReadKey();

            bool bo = false;

            sss = bo.ToString();

            Console.WriteLine(sss);

            People p = new People();
            p.Name = "xiaoming";
            p.Age = 11;
            p.Height = 175;
            p.Type = E_Xingbei.Man;
            p.Tizhong = 60;


            string myString = "my String";

            char[] myChar = myString.ToCharArray();

            foreach (char c in myString)
                Console.Write(c);



            // Type[] name 
            int[] arrayInt1 = new int[5];
            int[] arrayInt = new int[] {1,2,3,4,5};

            Console.WriteLine(p.Name);
            Test(p);
            Console.WriteLine(p.Name);



            string[] stringArray = new string[] { "sauighieg", "agsag" };

            for (int index = stringArray.Length-1; index >= 0; index--)
            {
                Console.WriteLine(stringArray[index]);
            }

            foreach (string s in stringArray)
                Console.WriteLine(s);
            
            int i = 0;
            float f = 0.0f;

            int x = (int)E_WeekType.Two;

            E_WeekType[] WeekArray = new E_WeekType[] { E_WeekType.One, E_WeekType.Two };

            int[,] twoArray =  { {1,2}, {3,4}, {5,6} };

            int[][] testArray = new int[3][] {new int[] {1,2}, new int[] {3,4,5}, new int[]{6,7,8,9}};

            for (int index1 = twoArray.Length - 1; index1 >= 0; index1--)
            {
                //for (int index2 = twoArray[index1].Length - 1; index2 >= 0; index2--)
                {
                   // Console.WriteLine(twoArray[index1, index2]);
                }
            }

            Console.WriteLine(x);

            Console.WriteLine(E_WeekType.Two);
            Console.WriteLine((int)E_WeekType.Three);
            Console.WriteLine((int)E_WeekType.Count);

            //short s = Convert.ToInt16(f);

            f = i;
            i = (int)f;
            Console.WriteLine("Hello World! VS");
            Console.ReadKey();






        }
    }
}
